#ifndef __UART_H
#define __UART_H
#include "main.h"
void HAL_UART_MspInit(UART_HandleTypeDef* huart);
void HAL_UART_MspDeInit(UART_HandleTypeDef* huart);
void HAL_UART_RxCpltCallback(UART_HandleTypeDef *huart);
void Commu_UART_Init(void);
void Print_UART_Init(void);

int fputc(int ch, FILE *f);

#define	Bluetooth_Uart			USART3
#define	Communication_Uart		USART4
#define	Log_Uart				USART6

extern	uint8 ResppackRece;
extern	UART_HandleTypeDef BluetoothUart;
extern	UART_HandleTypeDef CommunicationUart;

extern	uint8 lastbyte;
extern	uint8 nowbyet;


#define	Uart_ReceBufLen		300
typedef struct
{
	uint16			len;�������ݳ���
	uint8			buf[Uart_ReceBufLen];
	uint8			processed;�����Ƿ񱻴�����1�ѽᴦ����0û�д�����
	
}ReceDataInfor;
extern 	ReceDataInfor*Bluetooth_ReceData;
extern	ReceDataInfor* CollectBoard_ReceData;


void WatchdogInitial(void);
void FeedWatchDog(void);
#endif
